<?php

class CategoryController extends BaseController {
	
	public $table = 'category';

	public $model = 'Category';

	public function addListFilter($data, $object) {

		if(isset($data['filter_name'])) {
			$object = $object->whereRaw("LCASE(`name`) LIKE '%" . $data['filter_name'] . "%'");
		}

		return $object;
	}

}